Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Add lib1 in top Cargo.toml #1

Closed
wants to merge 1 commit into from
Closed

[DO NOT MERGE] Add lib1 in top Cargo.toml #1

wants to merge 1 commit into from

Conversation

doitian
Copy link

@doitian doitian commented Dec 18, 2018

Now, like a magic, lib1 will use feature1 in any environment:

cargo test
cargo test --all
# now the built binaries all prints foo 1
cargo build && target/debug/foo
cargo build --all && target/debug/foo
cargo build --release && target/release/foo
cargo build --release --all && target/release/foo

Now, like a magic, `lib1` will use `feature1` in any environment:

```
cargo test
cargo test --all
cargo build && target/debug/foo
cargo build --all && target/debug/foo
cargo build --release && target/release/foo
cargo build --release --all && target/release/foo
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant